package com.gskj.vod.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * @author :CodingFarmer_码农  Connor(康纳)_郭
 * @date : 10:07 20.5.19
 * @Company : http://www.gskj.com
 * @Version : 1.0
 */

@Component
public class ConstantVodUtil  implements InitializingBean {

    @Value("${aliyun.vod.file.keyid}")
    private String keyid;  // key

    @Value("${aliyun.vod.file.keysecret}")
    private String keysecret; //密钥


    public static String ACCESS_KEY_ID;
    public static String ACCESS_KEY_SECRET;

    @Override
    public void afterPropertiesSet() throws Exception {

        System.out.println(keyid);
        System.out.println(keysecret);

        ACCESS_KEY_ID =keyid;
        ACCESS_KEY_SECRET = keysecret;
    }
}
